package service.impl;

import dao.UserDAO;
import dao.impl.UserImpl;
import entity.User;
import service.UserService;

import java.sql.SQLException;
/**
 * 用户业务逻辑实现
 */
public class UserServiceImpl implements UserService {
    private UserDAO userDAO = new UserImpl();

    @Override
    public User login(String username, String pwd) throws SQLException {
        //调用dao对象进行登录
        return userDAO.login(username,pwd);
    }
}
